package cn.iocoder.yudao.module.reading.controller.app.community.vo.draft;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import java.util.List;

/**
 * 社区草稿创建 Request VO
 *
 * @author 芋道源码
 */
@Schema(description = "用户 APP - 社区草稿创建 Request VO")
@Data
public class DraftCreateReqVO {

    @Schema(description = "草稿类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "post")
    @NotEmpty(message = "草稿类型不能为空")
    private String type;

    @Schema(description = "草稿内容", example = "这是一个草稿内容...")
    @Size(max = 500, message = "草稿内容长度不能超过500个字符")
    private String content;

    @Schema(description = "图片URL列表", example = "[\"https://example.com/image1.jpg\"]")
    @Size(max = 3, message = "最多只能保存3张图片")
    private List<String> images;

}
